package org.example.controller;

import org.example.entity.Consultant_evaluation;
import org.example.service.Consultant_evaluationService;
import org.example.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName Consultant_evaluationController
 * @Description TODO
 * @Author yuezhijie
 * @Date 2025年08月18日 9:56
 * @Version 1.0
 */
@RestController
@RequestMapping("consultantevaluation")
public class Consultant_evaluationController {
    @Autowired
    private Consultant_evaluationService consultant_evaluationService;

    @GetMapping("/{id}/star")
    public R selectStar(@PathVariable("id") int id){
        List<Consultant_evaluation> consultantEvaluations = consultant_evaluationService.selectStar(id);
        return R.ok(consultantEvaluations);
    }
}
